package com.iamback.dy.examine.service.impl;

import java.util.HashMap;
import java.util.List;
import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.iamback.dy.entity.ConfigureParameter;
import com.iamback.dy.examine.service.IConfigureParameterService;
import com.iamback.dy.mapper.ConfigureParameterMapper;

@Service
public class ConfigureParameterServiceImpl   implements
		IConfigureParameterService {

	@Autowired
	private ConfigureParameterMapper  configureParameterDao;
	 
	
	@Override
	public boolean getAuth(String dyId){
		Map<String, Object> map =new HashMap<String, Object>();
		map.put("groupId", "1002");
		map.put("parameterValue", "%"+dyId+"%");
		List<ConfigureParameter>  configureParameters = configureParameterDao.findParameter(map);
		if(!configureParameters.isEmpty() && configureParameters.size()>0){
			 return true;
		}
		return false;
	}
}
